package com.stone.design.practice.typejava;

import android.support.annotation.NonNull;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 8/30/18 22:37
 * @email redsstone@163.com
 */
public class User implements Comparable<User>{


    private int age;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public int compareTo(@NonNull User o) {


        return age - o.getAge();
    }
}
